#!/bin/bash
source /etc/profile
day=$(date +%Y-%m-%d)
daythirty=$(date --date='30 days ago' +%Y-%m-%d)
daysixty=$(date --date='60 days ago' +%Y-%m-%d)
echo $day
cd /home/marvin/hive-1.1.0-cdh5.6.0

bin/hive -f /home/marvin/daily_job/hive/before.hql
bin/hive -f /home/marvin/daily_job/hive/pos.hql -d dt=day
bin/hive -f /home/marvin/daily_job/hive/posvip.hql
bin/hive -f /home/marvin/daily_job/hive/b.hql

